package com.wit.service.impl;

import java.util.Map;

import com.wit.dao.EmployeeDao;
import com.wit.po.Employee;
import com.wit.po.Employeeaddition;
import com.wit.service.EmployeeService;

public class EmployeeServiceImpl implements EmployeeService {
	
	EmployeeDao employeeDao;
	
	public Employee getEmployeeInfo(String employeeId) {
		
		return employeeDao.getEmployeeById(employeeId);
	}

	public boolean modifyEmployeeInfo(Employee employee) {
		
		return employeeDao.modifyEmployeeInfo(employee);
	}
	
	public Map getEmployeeNameList()
	{
		return employeeDao.getEmployeeNameList();
	}
	
	public boolean modifyEmployeeAddition(Employeeaddition addition) {
		return employeeDao.modifyEmployeeAddition(addition);
	}

	public Employeeaddition getEmployeeAdditionById(String employeeId) {
		return employeeDao.getEmployeeAdditionById(employeeId);
	}
	
	/************************ Getters and Setters ***************************/
	
	public EmployeeDao getEmployeeDao() {
		return employeeDao;
	}

	public void setEmployeeDao(EmployeeDao employeeDao) {
		this.employeeDao = employeeDao;
	}

}
